package com.k1998.mybatis.dao;

import com.k1998.mybatis.bean.MainMenu;
import com.k1998.mybatis.bean.StudentLogin;
import com.k1998.mybatis.bean.SubMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IMenuDao {
    public List<MainMenu> getMainMenus();
    public List<SubMenu> getSubMenus(@Param("title") String classname, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    public int getCounts(@Param("title") String title);
    public int insertSubMenus(SubMenu subMenu);
    public SubMenu detailSubMenus(SubMenu subMenu);
    public int updateSubMenus(SubMenu subMenu);
}
